package com.xxpure.lvq;
import java.util.Objects;

public class Pair<E, T> {
	private E sample;

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		Pair<?, ?> pair = (Pair<?, ?>) o;
		return Objects.equals(sample, pair.sample) && Objects.equals(mark, pair.mark);
	}

	@Override
	public int hashCode() {
		return Objects.hash(sample, mark);
	}

	private T mark;

	public Pair() {
	}

	public E getSample() {
		return sample;
	}

	public void setSample(E sample) {
		this.sample = sample;
	}

	public T getMark() {
		return mark;
	}

	public void setMark(T mark) {
		this.mark = mark;
	}

	public Pair(E sample, T mark) {
		this.sample = sample;
		this.mark = mark;
	}
}
